# -*- coding: UTF-8 -*-

import wx


def file_dialog(self, event):
    m_files_filter = "All files (*.xlsx)|*.xlsx"
    m_file_dialog = wx.FileDialog(self, message="选择文件", wildcard=m_files_filter, style=wx.FD_OPEN | wx.FD_MULTIPLE)
    m_dialog_result = m_file_dialog.ShowModal()
    if m_dialog_result != wx.ID_OK:
        return
    return m_file_dialog.GetPaths()
